<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>个人中心</title>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/style.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/personalsettings.css"/>
		<script type="text/javascript" src="Public/uploadify/jquery-1.8.2.min.js"></script>
		<script src="./Public/Home/js/jquery.easing.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/Home/js/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/Home/js/personalsettings.js" type="text/javascript" charset="utf-8"></script>
		<!-- 引入uploadify所需插件 -->
		<script type="text/javascript" src="./Public/uploadify/jquery.uploadify.min.js"></script>
    	<link rel="stylesheet" type="text/css" href="./Public/uploadify/uploadify.css">
	</head>
	<body>
	<!--顶部黑色区域-->
	<div id="header">
		<div class="top_logon">
			<div class="logo">
				<a href="index.html" class="lg_app">聘 Pin 首页</a>
				<a href="company.html" class="lg_os">进入企业版</a>
			</div>
			<ul class="top_r">
			                
				                
				<li>
					<a href="resume.html">我的简历</a>
				</li>
				<li>
					<a href="status.html" class="zc">投递箱</a>
				</li>
				
               				<li>
					<a href="collection.html" class="zc">收藏夹</a>
				</li>
				<li class="user_li">
					<a href="" class="zc">111@qq.com</a>
					<i></i>
					<ul>
						<li><a href="settings.html">账号设置</a></li>
						<li><a href="http://localhost/lagou/index.php?m=Home&c=Enter&a=quit">退出</a></li>
					</ul>
				</li>
						</ul>
		</div>
	</div>
	<!--顶部黑色区域结束-->

	<!--顶部白色导航区域-->
	<div id="top_grey">
		<div id="guide">
			<div class="guide_left">
				<a href="index.html"></a>
			</div>
			<ul class="guide_r">
							<li>
					<a href="index.html">首页</a>
				</li>
				<li>
					<a href="http://localhost/lagou/index.php?m=Home&c=List&a=company">公司</a>
				</li>

			
               			</ul>
		</div>
	</div>
	<!--顶部白色导航区域结束-->

	<!--主体部分-->
	<div id="Create_container">
			<!--左侧 我收到的简历-->
			 <div class="sidebar">
			 	<!--我收到的简历-->
			 	<dl class="company_center_aside">
			 		<dt>账号设置</dt>
			 		<dd class="active"><a href="settings.html">个人信息</a></dd>
			 		<!-- <dd><a href="<?php echo U('Settings/email')?>">邮箱绑定</a></dd> -->
			 		<dd><a href="editpwd.html">修改密码</a></dd>
			 	</dl>
			 </div>
			<!--左侧 我收到的简历  结束-->

			 <!--中间主体内容-->
			 <div class="content">
			 	<dl class="c_section">
			 		<dt>
			 			<h1>
			 				<em></em>个人信息
			 			</h1>
			 		</dt>
			 		<dd>
			 			<div class="userinfo_tips">
			 				此信息用于站内的沟通、社区等功能，不会同步修改简历
			 			</div>
			 			<div class="userinfo_edit">
			 				<form action="" method="post">
			 					<!--上传头像-->
			 					<div class="avatar">
			 						<img src="<?php echo $data['picture']?$data['picture']:'./Public/Home/image/myresume/default_headpic.png'?>" class="default_head"/>
									<img src="./Public/Home/image/myresume/shadow_tx.png" class="shadow"/>
									<input type="file" id="f" multiple="true"/>
										<script type="text/javascript">
									        $(function() {
									            $('#f').uploadify({
									                'formData'     : {//POST数据
									                    '<?php echo session_name();?>' : '<?php echo session_id();?>',
									                },
									                'fileTypeExts' : '*.jpg;*.png',
									                'swf'      : '<?php echo __PUBLIC__?>/uploadify/uploadify.swf',
									                'uploader' : '<?php echo U('upload')?>',//指定服务器上传的方法
									                'buttonText':'',
									                'fileSizeLimit' : '2000KB',
									                'uploadLimit' : 1,//上传文件数
									                'width':80,
									                'height':80,
									                'successTimeout':10,//等待服务器响应时间
									                'removeTimeout' : 0.2,//成功显示时间
									                'onUploadSuccess' : function(file, data, response) {
									                    //把php返回的数据转为json
									                    data=$.parseJSON(data);
									                    //获得图片地址
									                    var imageUrl = data.url;
									                    var li="<li>";
									                    li += "<img style='width:80px;height:80px;' src='"+imageUrl+"'/>";
									                    li += "<input type='hidden' name='picture' value='"+data.path+"'/><a href='javascript:;' id='self-close'>X</a>";
									                    li += "</li>";
									                    $("#uploadList ul").prepend(li);
									                }
									            });

												//关闭图片
									            var i = 1;
									            $('#self-close').live('click',function(){
									                $(this).parent('li').remove();
									                i++;
									                $('#f').uploadify('settings','uploadLimit',i);
									                var oldImg=$(this).siblings('input').val();
									                $.ajax({
									                	type:"post",
									                	url:"<?php echo U('delUpload')?>",
									                	data:{oldImg:oldImg},
									                	success:function(data){

									                	}
									                });
									            })
									        });
									    </script>
									    <div id="uploadList">
									        <ul>

									        </ul>
									    </div>
			 					</div>
			 					<!--修改昵称-->
			 					<div class="username_box">
			 						<label>昵称</label>
			 						<input type="text" name="username" id="username" value="<?php echo $data['username']?>" maxlength="15" />
			 					</div>
			 					<!--修改性别-->
			 					<div class="userinfo_sex">
			 						<span>性别</span>
			 						<input type="radio" name="sex" id="userinfoEditSexMale" value="男" <?php if($data['sex']=='男' ){?>
                 checked="checked" 
               <?php }?> />
			 						<label for="userinfoEditSexMale">男</label>
			 						<input type="radio" name="sex" id="userinfoEditSexFemale" value="女" <?php if($data['sex']=='女' ){?>
                 checked="checked" 
               <?php }?> />
			 						<label for="userinfoEditSexFemale">女</label>
			 					</div>
			 					<button>保存</button>
			 				</form>
			 			</div>
			 		</dd>
			 	</dl>
			 </div>
			 <!--中间主体内容 结束-->
		</div>


	<!--主体部分结束-->




	<!--回到顶部-->
	<a href="javascript:void(0);" id="back"></a>
	<!--回到顶部结束-->


	<!--底部区域-->
	<div id="floor">
		<div class="wrap">
			<i></i>
			<div class="fl_r">
				<a href="http://c69_wangfeng.houdunphp.com/blogDemo2.0/blog.html" target="_blank">作者博客</a>
				<a href="javascript:void(0);" class="wechat">
					作者微信
					<img src="./Public/Home/image/fl_wechat.jpg" />
				</a>
				<span>联系作者：<em>18637326191 (9:00 -18:00)</em></span>
			</div>
			<div class="fl_btm">
				<span>
					Copyright © 2010-2015 wfeng.com All Rights Reserved |
				</span>
				<span>京ICP备12048441号-3 |</span>
				<span>wangfeng@163.com</span>
			</div>
		</div>
	</div>

	<!--底部区域结束-->
	














	</body>
</html>

















